@import './variables.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './element-variables.scss';
@import './dialog.scss';
@import './filter-box.scss';
@import './rich-editor.scss';
@import './mobile.scss';
@import './fb-element.scss';
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: PingFangSC-Regular, PingFang SC;
  font-size: 12px;
}
h3 {
  margin: 0;
}
label {
  font-weight: 700;
}

html {
  // height: 100%;
  box-sizing: border-box;
}

#app{
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus{
  outline: none;
 }

a:focus,
a:active {
  outline: none;
}
.el-tabs__item:focus.is-active {
  &.is-focus {
    box-shadow: none !important;
  }
}
a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
textarea {
  -webkit-appearance: none;
}

//main-container全局样式
.el-message {
  &.el-message--info {
    .el-message__icon {
      color: #999 !important;
    }
    .el-message__content {
      color: #999 !important;
    }
  }
}
// 确认框的确认取消按钮的样式 目前是所有二次确认框的按钮都是该样式 后期修改UI按钮不需要了 可删
.el-message-box__btns .el-button--small {
  padding: 6px 12px !important
}
// 处理input type = number的上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"]{
  -moz-appearance: textfield;
}
// 表格固定列的阴影去除
// .el-table__fixed-right {
//   box-shadow: none !important;
// }
.el-table th > .cell {
  color: #515151;
}
// 设置筛选按钮的样式
.query-button {
  display: inline-block;
  .el-button--small {
    width: 80px;
    height: 32px;
  }
}

// 设置表格上方头部title样式
.list-title {
  font-size: 20px;
  color: #333;
  // border-left: 2px solid#55a7d2;
  padding: 18px 0 16px;
  &::before {
    position: relative;
    top: -1px;
    content: '';
    margin-right: 5px;
    width: 4px;
    height: 20px;
    display: inline-block;
    background-color: #406EFF;
    // border-radius: 2px;
    vertical-align: bottom;
  }
  .total {
    color: #999;
    font-weight: 400 !important;
    font-size: 14px;
  }
}
// 头部筛选的样式
.header-form {
  // 修改其他筛选条件的样式
  .query-form {
    .el-form-item {
      margin-right: 32px;
    }
    .el-input__icon {
      line-height: 32px;
      font-size: 12px;
    }
    .changeStatus .el-input input {
      width: 120px;
      color: #333 !important;
      // font-family:PingFangSC-Medium,PingFang SC;
      &.small {
        width: 96px;
      }
      &.middle {
        width: 120px;
      }
      &::-webkit-input-placeholder {
        color: #999999;
        // font-family:PingFangSC-Medium,PingFang SC;
      }
      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #999999;
      }
    }
    .input-width-select {
      .changeStatus .el-input input {
        width: 105px;
      }
      .el-input__inner {
        width: 152px;
      }
    }
    .el-input__inner {
      &::-webkit-input-placeholder {
        color: #999999;
      }
      &::-moz-placeholder { /* Mozilla Firefox 19+ */
        color: #999999;
      }
    }
  }

  // 修改日期控件的样式
  .el-range-editor--small .el-range-input {
    flex: 1;
    text-indent: 6px;
    // text-align: left;
  }
  .el-date-editor {
    .el-input__icon, .el-range-separator {
      line-height: 25px;
      font-size: 12px;
      width: 16px;
    }
    .el-range-separator {
      padding: 0 0 0 7px;
    }
  }
  .el-checkbox__label {
    font-size: 12px;
  }
}
// 两行展示，超过两行省略号展示
.ellipsis,.ellipsisOne {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.ellipsisTwo {
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
// 编辑新增页面的按钮样式
.crm-add-btn {
  margin-top: 32px;
  .submit-btn {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    font-size:16px;
    font-weight:500;
    color:rgba(255,255,255,1);
    line-height:16px;
  }
  .back-btn {
    width:80px;
    height:40px;
    border-radius: 4px;
    font-size:16px;
    font-weight:400;
    color:rgba(64,110,255,1);
    line-height:16px;
  }
}
// 修改时间轴的样式
.el-timeline:not(.not-icon-timeline) {
  .el-timeline-item {
    font-size: 14px !important;
    &:last-child {
      .el-timeline-item__tail {
        height: 95% !important;
      }
    }
  }
  .el-timeline-item__node--primary {
    display: none;
  }
  .el-timeline-item__tail {
    border-left: 1px solid #EEF1FE !important;
    top: 5px !important;
  }
  .el-timeline-item__wrapper {
    padding-left: 13px;
    .el-timeline-item__timestamp.is-top {
      margin-bottom: 0;
      width: auto;
      // max-width: 132px;
      display: inline-block;
      margin-left: -20px;
      height:26px;
      line-height: 18px !important;
      background:rgba(238,241,254,1);
      border: none;
      border-radius:16px;
      font-size:14px;
      font-weight:400;
      color:rgba(64,110,255,1);
      line-height:14px;
      padding: 4px 10px 0 30px;
      &::after {
        content: '';
        width: 13px;
        height: 16px;
        display: inline-block;
        position: absolute;
        top: 5px;
        left: 0px;
        background: url('../assets/logRili.png') center no-repeat;
        background-size: 100% auto;
      }
    }
  }
}
.el-timeline .el-timeline-item:last-child .el-timeline-item__tail {
  display: block !important;
}
// 修改下拉框的背景颜色和设置圆角
.el-select-dropdown {
  margin: 0 !important;
  box-shadow:0px 3px 6px 0px rgba(202,204,212,1) !important;
  .el-select-dropdown__list {
    padding: 0 !important;
  }
}
// tooltip 箭头显示
.el-select-dropdown,.el-dropdown-menu {
  .popper__arrow, .popper__arrow::after {
    display: none !important;
  }
}
.charge-message-box, .message-box {
  width:640px !important;
  height:auto !important;
  background:rgba(255,255,255,1);
  border-radius:12px !important;
  padding-bottom: 32px;
  .el-message-box__headerbtn {
    .el-icon-close {
      color: #999;
    }
  }
  .el-message-box__message {
    // margin-top: 30px;
    margin-bottom: 25px;
    max-height: 300px;
    font-size:18px;
    font-weight:400;
    // color:rgba(153,153,153,1);
    color: #333;
    line-height:20px;
    p {
      font-size: 16px;
      text-align: center;
    }
  }
  // 上传时的消息弹出框，因为消息内容可能很多，需要滚动条
  .el-message-box__message {
    @include scrollBar($x: auto, $y: scroll, $width: 6px);
  }
  .el-message-box__btns {
    .el-button--small {
      width: 120px;
      height: 40px;
      border-radius: 4px;
      font-size:16px;
      font-weight:500;
      color: #406eff !important;
      line-height:16px;
    }
    .el-button--primary {
      color:rgba(255,255,255,1) !important;
    }
  }
}
.text-left-box {
  .el-message-box__message {
    p {
      text-align: left;
    }
  }
}
.message-box {
  width: 400px !important;
}
.charge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: url('../assets/hint.png') center no-repeat;
  background-size: 100% auto;
}

.charge-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: url('../assets/success-message-box.png') center no-repeat;
  background-size: 100% auto;
}

// 修改输入框输入成功之后边框的颜色
.el-form-item.is-success {
  .el-input__inner {
    border: 1px solid #DCDFE6;
  }
}
.el-tooltip__popper {
  max-width: 80%;
  border-radius: 6px !important;
  &.is-dark {
    padding: 5px 10px;
  }
}

// 分页样式
.el-pagination {
  padding: 10px 5px !important;
}
.app-container {
  border-radius: 24px 0 0 24px;
}

.search-btn-style.el-button--primary.is-plain {
  background-color: #fff;
  border-color: #406EFF;
}
.cancel-btn-style {
  background:rgba(239,243,251,1) !important;
  color: $--color-primary !important;
  border-color: rgba(239,243,251,1) !important;
}
.el-form-box-left {
  .el-form-item__label {
    padding-right: 0 !important;
    padding-left: 10px;
    text-align: left !important;
  }
  .is-required {
    .el-form-item__label {
      padding-left: 0 !important;
    }
  }
}

.input-width-select-bg {
  .el-input-group__prepend {
    background-color: #fff;
  }
  & > .el-input__inner {
    background-color: #FAFAFC;
  }
}

.order-data-header-cell {
  border-bottom: 1px solid transparent !important;
}

.table-header-cell-nobottom {
  border-bottom: none !important;
}

.el-table:not(.default-scroll-table) {
  .el-table__body-wrapper {
    @include scrollBar(auto, auto, $width: 14px)
  }
  .el-table__fixed-right {
    height: 100% !important;
  }
  .el-table__fixed {
    height: 100% !important;
  }
}

body .el-table th.gutter {
  display: table-cell !important;
}

body .el-table colgroup.gutter {
  display: table-cell !important;
}

table {
  width: 100% !important;
}
.el-input__inner {
  line-height: 16px !important;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
}

.global-common-dialog {
  .el-tag.el-tag--info {
    color: #333333;
    background-color: #FAFAFC;
  }
   .dialog-footer {
    display: flex;
    justify-content: center;
  }
  .el-date-editor .el-range-separator {
    width: 10%;
    font-size: 14px;
  }
  .el-dialog__header {
    padding: 0px;
    padding-bottom: 0px;
  }
  .el-input__inner {
    height: 32px;
    line-height: 32px;
    width: 160px;
    font-size: 14px;
  }
  .el-textarea__inner {
    font-size: 14px;
  }
  .el-date-editor .el-range-input {
    font-size: 14px;
  }
  .el-range-editor--small .el-range__icon {
    line-height: 24px;
  }
  .el-input__icon {
    line-height: 32px;
  }
  .el-form--label-left .el-form-item__label {
    color: #666666;
  }
  .el-form-item__content {
    color: #333;
  }
}

.topLoading .el-loading-spinner{
  transform: translateY(200px);
  top: 0;
  margin-top: 0;
}
input[type="number"]{
  -moz-appearance:textfield;
}

// 新版表格样式
.fb-table, .el-table {
  .el-table__header {
    thead {
      th {
        padding: 7px 0;
        background: #F9F9F9;
        .cell {
          font-weight: 550;
          color: #141C3D;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
      }
    }
  }
  .el-button--text {
    padding: 0;
  }
  .table-selected {
    td {
      background-color: #F3F5FB;
    }
  }
  td {
    color: #333;
    border-color: #EBEEFD;
  }
}
%boderCommon {
  display: block;
  position: relative;
  &::before {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -7px;
    width: 1px;
    background: #ddd;
    height: 14px;
  }
}
.button-text {
  cursor: pointer;
  color: #406EFF;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap;
  &.bl {
    @extend %boderCommon;
    padding-left:6px;
    margin-left: 6px;
    &::before {
      left: 0;
    }
  }
  &.br {
    @extend %boderCommon;
    padding-right:6px;
    margin-right: 6px;
    &::before {
      right: 0;
    }
  }
  &.disabled {
    color: #c0c4cc;
    cursor: not-allowed;
  }
  &.bold {
    font-weight: bold;
  }
}
// 新版页面布局
.fb-page-flex {
  display: flex;
  flex-direction: column;
  .page-flex-item {
    flex:1;
    min-height: calc(100vh - 120px);
  }
  .full-page {
    height: calc(100vh - 104px);
    overflow-x: hidden;
    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
    .el-scrollbar__bar.is-horizontal {
      display: none;
    }
  }
}

.no-table-hover.el-table {
  .el-table__body {
    tr>td {
      background-color: transparent;
    }
  }
  .el-table__fixed-right {
    tr>td {
      background-color: transparent;
    }
  }
}

.min-fill-page {
  min-height: calc(100vh - 80px);
}

.gray-radio {
  margin-right: 2px;
  & ::v-deep {
    .el-radio__label {
      padding-left: 2px;
    }
    .el-radio__input.is-checked .el-radio__inner {
      border-color: #999;
      background-color: #fff;
    }
    .el-radio__inner::after {
      width: 8px;
      height: 8px;
      background-color: #999;
    }
    .el-radio__input.is-checked+.el-radio__label {
      font-size: 14px;
      color: #000;
    }
  }
}
.table-top-opeator-bar {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
}

.ps__rail-x, .ps__rail-x:hover, .ps__rail-x:focus, .ps__rail-x.ps--clicking {
  > .ps__thumb-x {
    background-color: #DDD !important;
    bottom: 0;
  }
}


.lineHeight32 {
  .el-form-item__label {
    color: #666;
  }
  .el-form-item__content,.el-form-item__label {
    line-height: 32px;
  }
}
.label-999 {
  .el-form-item__label {
    color: #999;
  }
}
.el-form-item {
  .el-form-item__label,
  .el-form-item__content {
    font-size: 14px !important;
    font-weight: 400;
    line-height: 32px !important;
  }
}
.lineHeightFlex {
  .el-form-item__label {
    color: #666;
  }
  .el-form-item__content {
    line-height: 32px;
    margin-left: 0 !important;
  }
  .el-form-item__label {
    line-height: 1.2 !important;
  }
  .el-form-item:not(.flex-start) {
    display: flex;
    align-items: center;
  }
  .el-form-item.flex-start .el-form-item__label {
    line-height: 32px !important;
  }
}
.el-form-color999 {
  .el-form-item__label {
    color: #999 !important;
  }
}
.white-space-nowrap {
  white-space: nowrap;
}

.response-el-row {
  flex-wrap: wrap;
  @media only screen and (min-width: 1300px) {
    .responsive-col-lg-8 {
      width: 33.33333%;
    }
  }
  @media only screen and (min-width: 1400px) {
    .responsive-col-medium-8 {
      width: 33.33333%;
    }
  }
  &.height55 {
    .responsive-col-lg-8,.responsive-col-medium-8 {
      height: 55px;
    }
  }
}
.flex-wrap {
  flex-wrap: wrap;
}
.create-page-container {
  margin: 16px;
  background-color: #fff;
  padding: 24px 24px 50px 24px;
  min-height: calc(100vh - 82px);
}
// 级联选择框选项过长时，配合el-tooltip使用
.ellips-cascader{
  .el-cascader-node{
    display: flex;
    justify-content: center;
    .inline-tag{
      display: inline-block;
      //max-width: 120px;
      margin-top: 11px;
    }
  }
}

.el-input .el-input__inner, .el-textarea  .el-textarea__inner{
  padding-left: 8px;
  color: #333;
  font-size: 14px;
}
.el-select  {
  .el-input__inner {
    padding-left: 8px;
  }
  .el-select__input {
    margin-left: 8px;
  }
}

.el-cascader .el-cascader__search-input {
  margin-left: 8px !important;
}
.el-select-dropdown__item {
  padding: 0 8px !important;
  font-size: 14px !important;
  max-width: 240px;
}
.panel-auto-width {
  .el-select-dropdown__item {
    max-width: 9999px;
  }
}
//设置级联下拉框文字超出隐藏
.tag-overflow{
  .el-cascader-node{
    display: flex;
    justify-content: center;
    .el-cascader-node__label{
      display: inline-block;
      max-width: 120px;
    }
  }
}
.maxWidth240 {
  max-width: 240px;
}
// 联系人、付款人样式
.customer-table-box {
  position: relative;
  .add-btn {
    position: absolute;
    right: 0;
    top: -46px;
    height: 32px;
    cursor: pointer;
    color: #406EFF;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #406EFF;
    border-radius: 4px;
    &:hover {
      color: #fff;
      background-color: #406EFF;
    }
  }
  .el-link {
    font-size: 14px;
  }
  &::v-deep {
    .el-table {
      tr td {
        background-color: #fff;
      }
    }
  }
}
.dynamic-container {
  margin-top: 8px !important;
}
.mb-16 {
  margin-bottom: 16px;
}
.el-form-dividing{
  .el-col {
    .el-form-item__content {
      border-right: 1px solid #EBEEFD;
    }
    &:nth-child(3n) {
      .el-form-item__content {
        border-right: none;
      }
    }
    &:last-child {
      .el-form-item__content {
        border-right: none;
      }
    }
  }
}
.el-form-dividing-2{
  .el-col {
    .el-form-item__content {
      border-right: 1px solid #EBEEFD;
    }
    &:nth-child(2n) {
      .el-form-item__content {
        border-right: none;
      }
    }
    &:last-child {
      .el-form-item__content {
        border-right: none;
      }
    }
  }
}

// 未读标记
.color-status-box {
  display: flex;
  align-items: center;
  position: relative;
  .dot {
    position: absolute;
    left: -8px;
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #FB5227;
    border-radius: 50%;
  }
}

.el-table__fixed-right-patch {
  background-color: #F9F9F9 !important;
  border-bottom: none !important;
}

// 解决固定列遮挡使得滚动条无法拖拽问题
.el-table:not(.default-scroll-table) .el-table__fixed,
.el-table:not(.default-scroll-table) .el-table__fixed-right {
  height: calc(100% - 14px) !important;
  box-shadow: 0 -8px 10px rgba(0,0,0,0.12);
}
.el-table__fixed::before, .el-table__fixed-right::before {
  height: 0 !important;
}

// umy-table 样式
.plTableBox .el-table__body tr.current-row>td {
  background-color: #F3F5FB;
}
// 解决table选框没有居中对齐问题
.plTableBox .el-table--border td:first-child .cell, .plTableBox .el-table--border th:first-child .cell {
  padding-right: 10px;
}

.has-gutter .is-sortable {
  .cell {
    align-items: center !important;
    height: 34px !important;
    line-height: 34px !important;
  }
}

.el-icon-info:hover {
  color: #406EFF !important;
  cursor: pointer;
}

.multiply-select-scroll {
  .el-tag {
    color: #333 !important;
    background-color: #EFF3FB !important;
    border-radius: 2px;
    font-family: PingFang SC, PingFang SC-Regular;
    .el-icon-close {
      transform: scale(1);
      background-color: transparent !important;
      color: #333 !important;
      height: 14px !important;
      width: 14px !important;
      font-size: 12px !important;
      position: relative;
      right: 0;
      margin-left: 3px;
      &::before {
        height: 100% !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
      }
      &:hover {
        background-color: #333333 !important;
        color: #fff !important;
        font-weight: bold !important;
      }
    }
  }
  .el-select__tags,
  .el-cascader__tags {
    max-height: 140px;
  }
}
.fields-count{
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #999999;
  font-weight: normal;
  margin-left: 8px;
  padding: 0 21px 0 4px;
  background: #FAFAFC;
  border-radius: 2px;
  .text{
    font-size: 16px;
    font-family: DIN Alternate, DIN Alternate-Bold;
    font-weight: 700;
    color: #5F77C3;
  }
}

// Table可拉伸列右侧固定列样式
.beautifyTableClass {
  .el-table__fixed-right-patch {
    background-color: #F9F9F9 !important;
  }
}

// Table可拉伸列样式
.plTableBox .el-table--border th .pltableDragIcon i{
  background: #ececec94 !important;
  height: 24px !important;
  top: 50% !important;
  transform: translateY(-50%);
}
.plTableBox .el-table--border th .pltableDragIconHover:hover {
  background: none;
  border-right: 1px solid black;
}
.diyHeader {
  margin-left: 14px;
}
.diy-cell {
  .cell {
    padding-left: 0px !important;
  }
}

// 多行message
.multi-message-box {
  align-items: flex-start !important;
  .el-message__icon {
    margin-top: 1px;
  }
  .el-message__closeBtn {
    top: 21px;
  }
}
body {
  ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
  }
}

.el-table {
  .el-table__body-wrapper::-webkit-scrollbar, .el-table__fixed-body-wrapper::-webkit-scrollbar   {
    height: 14px !important;
  }
  &.el-table--scrollable-y {
    .el-table__fixed-right {
      right: 14px !important;
      bottom: 0 !important;
    }
  }
}
.el-dialog__wrapper {
  ::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 4px !important;
  }
}
.mobile {
  ::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
  }
  .el-table {
    .el-table__body-wrapper::-webkit-scrollbar, .el-table__fixed-body-wrapper::-webkit-scrollbar {
      width: 6px !important;
      height: 6px !important;
    }
    &.el-table--scrollable-y {
      .el-table__fixed-right {
        right: 6px !important;
      }
      .el-table__header-wrapper {
        position: relative;
        right: 6px;
        .el-table__header {
          padding-left: 6px;
        }
      }
    }
  }
}
.remark-autocomplete {
  .popper__arrow {
    display: none !important;
  }
}

.label-collapse-global {
  .el-form-item {
    .el-form-item__label {
      line-height: 1.2 !important;
    }
  }
}
.global-plain-btn {
  background: #fff !important;
  font-size: 14px;
  padding-left: 8px;
  color: #406EFF !important;
  padding-right: 8px;
  border-radius: 4px;
  border-color: #406EFF !important;
  box-sizing: border-box;
}